package com.geeksaga.dao;

import java.util.List;


import org.springframework.dao.DataAccessException;

import com.geeksaga.domain.SecondaryCode;

/**
 * @author newbie
 * @since 0.1
 */
public interface SecondaryCodeDao {
	
    /**
     * @param secondaryCode
     * @return
     * @throws DataAccessException
     */
    public SecondaryCode add(SecondaryCode secondaryCode) throws DataAccessException;
    
    /**
     * @param secondaryCode
     * @return
     * @throws DataAccessException
     */
    public SecondaryCode modify(SecondaryCode secondaryCode) throws DataAccessException;
    
    /**
     * @param secondaryCode
     * @return
     * @throws DataAccessException
     */
    public SecondaryCode remove(SecondaryCode secondaryCode) throws DataAccessException;
    
    /**
     * @return
     * @throws DataAccessException
     */
    public List<SecondaryCode> findList() throws DataAccessException;
    
    /**
     * @return
     * @throws DataAccessException
     */
    public List<SecondaryCode> findCacheList() throws DataAccessException;
    
    /**
     * @param secondaryCode
     * @return
     * @throws DataAccessException
     */
    public SecondaryCode find(SecondaryCode secondaryCode) throws DataAccessException;
    
    /**
     * @return
     * @throws DataAccessException
     */
    public int count() throws DataAccessException;
}